
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for error_code
-- ----------------------------
DROP TABLE IF EXISTS `error_code`;
CREATE TABLE `error_code` (
                              `error_code` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
                              `pre_code` varchar(255) COLLATE utf8_bin NOT NULL,
                              PRIMARY KEY (`error_code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

-- ----------------------------
-- Records of error_code
-- ----------------------------
BEGIN;
INSERT INTO `error_code` VALUES ('200006', '20');
INSERT INTO `error_code` VALUES ('200007', '20');
INSERT INTO `error_code` VALUES ('200008', '20');
INSERT INTO `error_code` VALUES ('200009', '20');
INSERT INTO `error_code` VALUES ('210005', '21');
INSERT INTO `error_code` VALUES ('210006', '21');
INSERT INTO `error_code` VALUES ('210007', '21');
INSERT INTO `error_code` VALUES ('210008', '21');
INSERT INTO `error_code` VALUES ('210009', '21');
INSERT INTO `error_code` VALUES ('210010', '21');
INSERT INTO `error_code` VALUES ('210011', '21');
COMMIT;

-- ----------------------------
-- Table structure for pre_error_code
-- ----------------------------
DROP TABLE IF EXISTS `pre_error_code`;
CREATE TABLE `pre_error_code` (
                                  `id` int NOT NULL AUTO_INCREMENT,
                                  `pre_code` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
                                  `pre_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
                                  PRIMARY KEY (`id`),
                                  UNIQUE KEY `index_pre` (`pre_code`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

-- ----------------------------
-- Records of pre_error_code
-- ----------------------------
BEGIN;
INSERT INTO `pre_error_code` VALUES (1, '20', 'APP');
INSERT INTO `pre_error_code` VALUES (2, '21', 'CAR');
COMMIT;

SET FOREIGN_KEY_CHECKS = 1;
